package com.runfast.waimai.dao.model;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.*;

/**
 * base_user
 * @author 
 */
@Data
public class BaseUser implements Serializable {
    /*** id*/
    private Integer id;

    /*** 区域id*/
    private String areaid;

    /*** 创建时间*/
    private Date createtime;

    private String cssstyle;

    /*** email*/
    private String email;

    /*** 电话*/
    private String mobile;

    /*** 修改时间*/
    private Date modifytime;

    private String orgid;

    /*** 密码*/
    private String password;

    /*** 真实名字*/
    private String realname;

    /*** 状态*/
    private Integer state;

    /*** 登录名字*/
    private String username;

    private Integer flag;

    private String cityid;

    private String cityname;

    private String countyid;

    private String countyname;

    /*** 管理的代理商id*/
    private String agentids;

    /*** 代理商id*/
    private Integer agentId;

    private Integer type;//用户级别

    private Set<BasePurview> purviews = new HashSet<BasePurview>();

    private Set<BaseRole> roles = new HashSet<BaseRole>();

    private Set<Integer> pids = new HashSet<Integer>();
    /*** 角色ID列表*/
    private List<Integer> roleIdList=new ArrayList<Integer>();

    /*** 权限ID列表*/
    private List<Integer> purviewIdList=new ArrayList<Integer>();

    private List<Integer> agents=new ArrayList<Integer>();//管理的代理商ID

    private boolean root;//是否归属根组织

    private List<BaseRole> baseRoles = new ArrayList<BaseRole>();
    /*** 用户的角色id* */
    private  Integer rid;
    /**用户角色名字*/
    private String rname;

    private BaseRole baseRole;

    /**
     * 代理商佣金系数即每100扣除的费用(外卖)
     */
    private BigDecimal coefficient;



    private List<WaiMaiRunfastAgentbusiness> waiMaiRunfastAgentbusinessList=new ArrayList<WaiMaiRunfastAgentbusiness>();

    private static final long serialVersionUID = 1L;
}